package com.hunan.chinamobile.dao;

import com.hunan.chinamobile.core.MyMapper;
import com.hunan.chinamobile.dto.UserDTO;
import com.hunan.chinamobile.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HUserMapper extends MyMapper<User> {

    UserDTO findByUserName(@Param("username")String username);

    List<User> findByRoleAndUserName(@Param("roleId") String roleId,@Param("username") String name);

    List<User> findByCityId(@Param("cityId") String cityId);

    User check(@Param("username") String username);

    UserDTO login(@Param("username") String username, @Param("pwd") String password);
}